// @ts-ignore
/* eslint-disable */
import { requestAuth } from '@/utils/request';

/** 获取当前用户信息 */
export async function fetchUserInformation() {
  return requestAuth({
    method: 'GET',
    url: '/api/getUserInfo',
    data: {},
  });
}

/** 获取当前用户菜单 */
export async function fetchRouteResource() {
  return requestAuth({
    method: 'POST',
    url: '/api/system/resource/getRouterList',
    data: {},
  });
}
